Skip to content

feat: dont render close button if no close handler is passed#110

Merged
adefreitas merged 3 commits intoStackOneHQ:mainfrom
adefreitas:feat-make-on-close-optional
Mar 17, 2026
Merged

feat: dont render close button if no close handler is passed#110
adefreitas merged 3 commits intoStackOneHQ:mainfrom
adefreitas:feat-make-on-close-optional

Conversation

@adefreitas
Copy link
Copy Markdown
Collaborator

@adefreitas adefreitas commented Mar 17, 2026

Summary by cubic

Make SuccessCardFooter optional: show the Close button only when onClose is provided and hide the whole footer when there are no links and no close action. IntegrationPicker now passes onClose through directly, and lint warnings were fixed.

Written for commit 9758683. Summary will update on new commits.

Copilot AI review requested due to automatic review settings March 17, 2026 13:51
jpmiguel
jpmiguel previously approved these changes Mar 17, 2026
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

jpmiguel
jpmiguel previously approved these changes Mar 17, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the integration picker success-state footer so the “Close” action is only shown when a close handler is provided, preventing a non-functional close button from being rendered.

Changes:

  • Make SuccessCardFooter’s onClose prop optional and conditionally render the Close button.
  • Pass onClose through directly from IntegrationPicker instead of wrapping it.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/modules/integration-picker/components/successCardFooter.tsx Makes onClose optional and renders the Close button only when a handler exists.
src/modules/integration-picker/IntegrationPicker.tsx Passes onClose directly into the success footer.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@adefreitas adefreitas enabled auto-merge (squash) March 17, 2026 13:57
@adefreitas adefreitas disabled auto-merge March 17, 2026 14:14
@adefreitas adefreitas merged commit b110f20 into StackOneHQ:main Mar 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants